<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Trocar Senha</title>
</head>
<body>
	<f:view locale="#{languageDetails.locale}">
		<h:form>
			<h:panelGrid columns="3">
				<h:outputLabel value="#{msg.senha}" for="senha" />
				<h:inputSecret id="senha" value="#{ControladorUsuario.us.senha}"
					required="true" requiredMessage="#{msg.campoObrigatorio}"
					validatorMessage="#{msg.msg2}">
					<f:validateLength minimum="6" maximum="30" />
				</h:inputSecret>
				<h:message style="color: red; text-decoration: overline"
					id="senhaErro" for="senha" />

				<h:outputLabel value="#{msg.senha2}" for="senha2" />
				<h:inputSecret id="senha2" value="#{ControladorUsuario.us.senha2}"
					required="true" requiredMessage="#{msg.campoObrigatorio}"
					validatorMessage="#{msg.msg2}">
					<f:validateLength minimum="6" maximum="30" />
				</h:inputSecret>
				<h:message style="color: red; text-decoration: overline"
					id="senha2Erro" for="senha2" />
			</h:panelGrid>
			<p>
				<a href="home.jsf">${msg.voltar}</a>
				<h:commandButton id="change" value="#{msg.proximo}"
					action="#{ControladorUsuario.editar}" />
			</p>
			<p>
				<h:messages styleClass="mensagemIformacao" />
			</p>
		</h:form>
	</f:view>
</body>
</html>